<?php if (!defined('THINK_PATH')) exit();?><html>
	<head>
		<link rel="stylesheet" type="text/css" href="/project/funtravel/project1/Public/css/homepage.css">
		<link rel="stylesheet" href="/project/funtravel/project1/Public/assets/css/style.css">
		<link rel="stylesheet" href="/project/funtravel/project1/Public/css/slider.css">
		<link rel="stylesheet" href="/project/funtravel/project1/Public/jquery-ui.css">
		<script src="/project/funtravel/project1/Public/jquery-2.1.4.js"></script>
		<script type="text/javascript" src="/project/funtravel/project1/Public/js/script.js"></script>
		<script src="/project/funtravel/project1/Public/jquery-ui.js"></script>
		<script>
			$(function(){
				//弹出计划表
				$('.setup_top').click(function(){
					$('.setup_mask').fadeOut(100);
					$('.setup').slideUp(200);
				})
				$('#setup').click(function(){
					$('.setup_mask').fadeIn(500);
					$('.setup').slideDown(200);
				})
				$("#start_time").datepicker({ dateFormat: "yy-mm-dd" }).val();
				$("#end_time").datepicker({ dateFormat: "yy-mm-dd" }).val();
				//计划表限制
				$('.setup_info').find('input').blur(function(){
					if ($(this).val() == ''){
						$(this).next().html("* 此选项必填");
					}else{
						$(this).next().html("");
					}
				})
				$('#num_limit').blur(function(){
					if(isNaN($(this).val())){
						$(this).next().html("* 请输入数字");
					}
				})
/*				$('.addend').click(function(){
					var num = $('#end').length      ;
					alert(num);
					$('#end').after('<input type="text" id="end" name="end">');
				})*/
			})
		</script>
	</head>
<body>
	<div class="head_all">
		<div class="head_body">
			<ul>
				<li id="headlogo">LOGO</li>
				<li id="headinput"><input type="text"></li>
				<li id="headbutton"><input type="button" value="搜索"></li>
				<li style="width:35%;height:32px;"></li>
				<li id="headid"><?php echo ($user_nickname); ?></li>
				<li id="headinfo">消息</li>
				<li id="headset">设置</li>
			</ul>
		</div>
	</div>
	<div class="top">
		<div class="top_min">
			<div class="top_min_top">
				<div class="pic" >
					<img src="/project/funtravel/project1/Public/img/test.jpg" style="width:80px;height:80px;border-radius:40px;">
				</div>
				<div class="pic_name">
				<?php echo ($user_nickname); ?>
				</div>
				<div class="qianming">
				<?php echo ($signature); ?>
				</div>
			</div>
		</div>
		<!--			<div class="top_min_right">
				<div class="issue">
					<div class="issue_inner">
						<a id = "setup">创建</a>
						<a id = "joinin">加入</a>
					</div>
				</div>
			</div>-->
		<div class="bodybot">
			<div class = "bodybot_one">
				<div class="bodybot_left">
					<div class="plan_span">
						<div class="planinfo">
							<div class="planinfo_top">
								<div class="head_pic"><img src="/project/funtravel/project1/Public/img/test.jpg" style="width:62px;height:62px;"></div>
								<div class="user_nameinfo">占位置的名字</div>
								<div class="plan_route">成都 - 江苏 - 北京 - 西安</div>
							</div>
							<div class="plan_list">
								<ul>
									<li>出发时间2016/1/21</li>
									<li>结束时间2016/1/31</li>
									<li>旅游方式</li>
									<li>限制女性</li>
									<li>限制人数(10)</li>
								</ul>
							</div>
							<div class="planinfo_bom">
								<div class="plantext">这是旅游计划这是旅游计划，用于测试这是旅游计划这是，旅游计划用于测试这是旅游计划这是旅游计划用于测试这！是旅游计划这是旅游计划用于测试这是旅游计划这是旅游计划用于测试这是旅游计划这是旅游计划用于测试这，是旅游计划这是旅游计划用于测试这是旅游计划这是旅游计划用于测试这是旅游计划用于测试这是旅游，计划这是旅游计划用于测试这是旅游计划。这是旅游计划!</div>
								<div class="planpic">
									<div class="planpicinfo">
										<ul>
											<li><img src="/project/funtravel/project1/Public/img/demo1.jpg" ></li>
											<li><img src="/project/funtravel/project1/Public/img/demo2.jpeg" ></li>
											<li><img src="/project/funtravel/project1/Public/img/demo3.jpg" ></li>
											<li><img src="/project/funtravel/project1/Public/img/demo4.jpeg" ></li>
										</ul>
									</div>
								</div>
								<div class="plantext_bom">
									<div class="self-list">
										<div class="self-list-forward">转发</div>
										<div class="self-list-forward">收藏</div>
									</div>
									<div class="selftime">2016/1/25 18:08:23</div>
								</div>
							</div>
						</div>
						<div class="planinfo">
							<div class="planinfo_top">
								<div class="head_pic"><img src="/project/funtravel/project1/Public/img/demo5.jpg" style="width:62px;height:62px;"></div>
								<div class="user_nameinfo">AsFun</div>
								<div class="plan_route">成都 - 江苏 - 北京 - 西安</div>
							</div>
							<div class="plan_list">
								<ul>
									<li>出发时间2016/1/21</li>
									<li>结束时间2016/1/31</li>
									<li>旅游方式</li>
								</ul>
							</div>
							<div class="test"></div>
							<div class="planinfo_bom">
								<div class="plantext">这是旅游计划这是旅游计划用于测试这是旅游计划这是旅游计划用于测试这是旅游计划这是旅游计划用于测试这是旅游计划这是旅游计划用于测试这是旅游计划这是旅游计划用于测试这是旅游计划这是旅游计划用于测试这是旅游计划这是旅游计划用于测试这是旅游计划这是旅游计划用于测试这是旅游计划用于测试这是旅游计划这是旅游计划用于测试这是旅游计划这是旅游计划</div>
								<div class="planpic">
									<div class="planpicinfo">
										<ul>
											<li><img src="/project/funtravel/project1/Public/img/demo5.jpg" ></li>
											<li><img src="/project/funtravel/project1/Public/img/demo1.jpg" ></li>
											<li><img src="/project/funtravel/project1/Public/img/demo2.jpeg" ></li>
										</ul>
									</div>
								</div>
								<div class="plantext_bom">
									<div class="self-list">
										<div class="self-list-forward">转发</div>
										<div class="self-list-forward">收藏</div>
									</div>
									<div class="selftime">2016/1/25 18:08:23</div>
								</div>
							</div>
						</div>
<!--START-->
					<?php if(is_array($list)): foreach($list as $k=>$vo): ?><div class="planinfo">
							<div class="planinfo_top">
								<div class="head_pic"><img src="/project/funtravel/project1/Public/img/test.jpg" style="width:62px;height:62px;"></div>
								<div class="user_nameinfo"><?php echo ($user_nickname); ?></div>
								<div class="plan_route">
								<?php echo ($vo["start"]); ?> -> 
									<?php if($vo["endnum"] != 1): $__FOR_START_16159__=0;$__FOR_END_16159__=$vo["endnumbefore"];for($i=$__FOR_START_16159__;$i < $__FOR_END_16159__;$i+=1){ echo ($vo["end"]["$i"]); ?> -><?php } ?>
											 <?php echo ($vo["endplace"]); ?>
									<?php else: ?>
											<?php echo ($vo["endplace"]); endif; ?>
								</div>
							</div>
							<div class="plan_list">
								<ul>
									<li>出发时间<?php echo ($vo["start_time"]); ?></li>
									<li>结束时间<?php echo ($vo["end_time"]); ?></li>
									<li>旅游方式<?php echo ($vo["trip_mode"]); ?></li>
									<li><?php echo ($vo["sex_req"]); ?></li>
									<li>限制人数(<?php echo ($vo["plan_peoplenum"]); ?>)</li>
								</ul>
							</div>
							<div class="planinfo_bom">
								<div class="plantext"><?php echo ($vo["msg_info"]); ?></div>
								<div class="planpic">
									<div class="planpicinfo">
										<ul>
										<?php if($vo["host_photo_num"] != 0 and $vo["host_photo"] != none): $__FOR_START_620__=0;$__FOR_END_620__=$vo["host_photo_num"];for($i=$__FOR_START_620__;$i < $__FOR_END_620__;$i+=1){ ?><li>
												<img src="/project/funtravel/project1/Public/Uploads/plan/<?php echo ($vo["user_id"]); ?>/<?php echo ($vo["plan_time"]); ?>/<?php echo ($vo["host_photo"]["$i"]); ?>" >
											</li><?php } endif; ?>
										</ul>
									</div>
								</div>
								<div class="plantext_bom">
									<div class="self-list">
										<div class="self-list-forward">转发</div>
										<div class="self-list-forward">收藏</div>
									</div>
									<div class="selftime"><?php echo ($vo["plan_time_a"]); ?></div>
								</div>
							</div>
						</div><?php endforeach; endif; ?>
<!--END-->
					</div>
				</div>
			</div>
			<div class="bodybot_right">
				<div class="navigation">
					<ul>
						<li><a href="<?php echo U('Messagebord/messagebord');?>">留言板</a></li>
						<li><a href="<?php echo U('Planinfo/planlist');?>">时光轴</a></li>
						<li>搜索</li>
						<li id="setup">创建</li>
						<li>杂志社</li>
					</ul>
				</div>
				<div class="top_span">
					<div class = "top_title">旅游达人带你玩转全球<img src="/project/funtravel/project1/Public/img/iconfont-shuaxin.png"style="width:30px;float:right;margin-top:5px;"/></div>
					<div class = "top_pic">
						<img src="/project/funtravel/project1/Public/img/toptest1.jpg"/>
						<img src="/project/funtravel/project1/Public/img/toptest2.png"/>
						<img src="/project/funtravel/project1/Public/img/toptest4.png"/>
						<img src="/project/funtravel/project1/Public/img/toptest3.png"/>
					</div>
					<ul>
						<li>
							<div class="abstract">3天玩转普吉岛,转普吉岛,。</div>
							<div class="author">呆呆的旅游家你玩转全</div>
						</li>
						<li>
							<div class="abstract">埃及人文,和我一起探秘古及人文,和我一起探埃及。</div>
							<div class="author">走遍世界</div>
						</li>
						<li>
							<div class="abstract">国庆七天去哪，韩岛还不错韩国济州哦</div>
							<div class="author">小米家庭花的草花的草</div>
						</li>
						<li>
							<div class="abstract">九寨风00元国00元国情。</div>
							<div class="author">傻子也有春天</div>
						</li>
						<li>
							<div class="abstract">领略中东风情,我的马可波罗游我的马记。</div>
							<div class="author">花花的草草</div>
						</li>
						<li>
							<div class="abstract">300元国岛,自然的问候。</div>
							<div class="author">什么什么鬼</div>
						</li>
						<li>
							<div class="abstract">埃及人文,和我一起和我一起探秘古埃。</div>
							<div class="author">呆呆的旅游家的旅游</div>
						</li>
						<li>
							<div class="abstract">领略中东风情,我的马我300元国岛,自然的马可波罗游记。</div>
							<div class="author">花花的草草</div>
						</li>
						<li>
							<div class="abstract">3天玩转普吉岛,自然300元国岛,自然的问候。</div>
							<div class="author">什么什么鬼</div>
						</li>
					</ul>
				</div>
				<div class="ad_span">
					<div class= "ad_title" >
						<div class="slider">
							<div class="slider-container">
							<div class="slider-wrapper">
							  <div class="slide"> <img src="/project/funtravel/project1/Public/assets/img/img1.jpg" alt="jQuery Slider with CSS Transitions"> </div>
							  <div class="slide"> <img src="/project/funtravel/project1/Public/assets/img/img2.jpg" alt="jQuery Slider with CSS Transitions"> </div>
							  <div class="slide"> <img src="/project/funtravel/project1/Public/assets/img/img3.jpg" alt="jQuery Slider with CSS Transitions"> </div>
							  <div class="slide"> <img src="/project/funtravel/project1/Public/assets/img/img4.jpg" alt="jQuery Slider with CSS Transitions"> </div>
							</div>
						</div>
						<script src="/project/funtravel/project1/Public/assets/js/slider.js"></script> 
						<script type="text/javascript">
							(function() {
								Slider.init({
									target: $('.slider'),
									time: 6000
								});
							})();
						</script>
						</div>
					</div>
				</div>
				<div class="qyou_span">
					<div class = "top_title">趣游杂志社</div>
					<div class = "qyou_column">
					<div id="banner_tabs" class="flexslider">
						<ul class="slides">
							<li>
								<a title="" target="_blank" href="#">
									<img width="1920" height="482" alt="" src="/project/funtravel/project1/Public/img/qyou_column.jpg">
								</a>
							</li>
							<li>
								<a title="" href="#">
									<img width="1920" height="482" alt="" style="background: url(images/banner2.jpg) no-repeat center;" src="/project/funtravel/project1/Public/img/qyou_column1.jpg">
								</a>
							</li>
							<li>
								<a title="" href="#">
									<img width="1920" height="482" alt="" style="background: url(images/banner3.jpg) no-repeat center;" src="/project/funtravel/project1/Public/img/qyou_column2.jpg">
								</a>
							</li>
						</ul>
						<ol id="bannerCtrl" class="flex-control-nav flex-control-paging">
							<li><a>1</a></li>
							<li><a>2</a></li>
							<li><a>2</a></li>
						</ol>
					</div>
					<script src="/project/funtravel/project1/Public/js/slider.js"></script>
					<script type="text/javascript">
					$(function() {
						var bannerSlider = new Slider($('#banner_tabs'), {
							time: 5000,
							delay: 400,
							event: 'hover',
							auto: true,
							mode: 'fade',
							controller: $('#bannerCtrl'),
							activeControllerCls: 'active'
						});
						$('#banner_tabs .flex-prev').click(function() {
							bannerSlider.prev()
						});
						$('#banner_tabs .flex-next').click(function() {
							bannerSlider.next()
						});
					})
					</script>
					<div class=""></div>
				</div>
			</div>
		</div>
	<div class="qyou_info">
		<div class="qyou_about">
			友情链接 · 悦旅行 · 途牛旅游 · 设计家 · 自游网 · K2户外旅行 爱游观察 · 骑罢客 · 一块去旅行 · 米堆网 · 游凤凰网 · 莫贝网 · 慢时间 · 品牌密码 · 旅游情报 
		</div>
		<div class="qyou_about">
			关于我们 · 联系我们 · 加入我们 · 服务协议 · 帮助中心 · 趣游俱乐部
		</div>
		<div class="qyou_about">
			©2015-2016  成都趣游网络技术有限公司版权所有  川ICP备09000768号-5 
		</div>
	</div>
	</div>
	<!--这是弹出框 发布计划DIV setup-->
	<div class="setup">
		<div class="setup_top">
			<div class="close_setup">关闭</div>
		</div>
		<form action="<?php echo U('Setup/mkplan');?>" method="POST" enctype="multipart/form-data">
		<div class="setup_info">
			<div class="setup_info1">
				<div class="setup_info1title">起点</div>
				<input type="text" name="start" id="start"><div class="warning"></div>
			</div>
			<div class="setup_info1">
				<div class="setup_info1title">目的地</div>
				<input type="text" name="end" id="end" placeholder="  如有多个目的地请用' , ' (逗号) 分隔"><!--div class="addend">+</div--><div class="warning"></div>
			</div>
			<div class="setup_info1">
				<div class="setup_info1title">时间规划</div>
				<input type="text" name="start_time" id="start_time" placeholder="开始时间"style="width:180px;text-align:center;"/>
				<input type="text" name="end_time" id="end_time" placeholder="结束时间"style="width:180px;margin-left:40px;text-align:center;"/><div class="warning"></div>
			</div>
			<div class="setup_info1">
				<div class="setup_info1title">人数限制</div>
				<input type="text" name="num_limit" id="num_limit"><div class="warning"></div>
			</div>
			<div class="setup_info1">
				<div class="setup_info1title">甲方人数</div>
				<input type="text" name="host_num">
				<div class="warning"></div>
			</div>
			<div class="setup_info1">
				<div class="setup_info1title">出行方式</div>
				<input type="text" name="trip_mode"></input><div class="warning"></div>
			</div>
			<div class="setup_info1" name="sex_limit">
				<div class="setup_info1title">性别要求</div>
				<div class="choose">
					<label><input name="sex_limit" type="radio" value="无" checked/></label><span>无</span> 
					<label><input name="sex_limit" type="radio" value="男" /></label><span>男</span>
					<label><input name="sex_limit" type="radio" value="女" /></label><span>女</span>
				</div>
				<div class="warning"></div>
			</div>
			<div class="setup_info2">
				<input type="textarea" name="msg_info" style="width:98%;height:110px;margin-right:auto;margin-left:auto;">
			</div>
			<div class="setup_info2" id="setup_info2_pic">
				<div class="file_input">
					<div class="preview"></div>
					<input type="file" class="fileonload" name='photo[]'>
				</div>
				<div class="file_input">
					<div class="preview"></div>
					<input type="file" class="fileonload" name='photo[]'>
				</div>
				<div class="file_input">
					<div class="preview"></div>
					<input type="file" class="fileonload" name='photo[]'>
				</div>
			</div>
			<div class="setup_info1">
				<input type="submit"value="提交">
			</div>
		</div>
		</form>
	</div>
	<div class="setup_mask">
	</div>
</body>
<script type="text/javascript">
function imgfull(){
	alert($('#img').val());
} 
$(function(){
 	$(".fileonload").change(function(){
		var file = $(this)[0];
		if (file.files && file.files[0]){
			var reader = new FileReader();
			reader.test = $(this);
			reader.onloadend = function(evt){
			this.test.prev().html('<img src="' + evt.target.result + '" />');
 			}
			 reader.readAsDataURL(file.files[0]);
		}
 	})
})
</script>
</html>